var fs = require('fs')

// json文件目录
var notionFilePath = './statistic/02_family/0_index/notion.json'
var processFilePath = './statistic/02_family/0_index/process.json'

const loadData = function(url) {
    var temp = fs.readFileSync(url, 'utf8')
    var temps = JSON.parse(temp)
    return temps
}

// // notion部分
var notions = {
    data:loadData(notionFilePath)
}

var processs = {
    data:loadData(processFilePath)
}

var res = {}


res.notionAll = function() {
    var contents = notions.data
    return contents
}
res.processAll = function() {
    var contents = processs.data
    return contents
}

//导出一个对象，可直接引用
module.exports = res
